<form action="index.php?r=admin/note/updatenote" method="post" enctype="multipart/form-data">
    <div class="form-group">
        <label>Title</label>
        <input class="form-control" style="width: 300px" name="title" value="<?php echo $noteitem->title?>">
        <p class="help-block">Tựa Đề</p>
    </div>

    <div class="form-group">
        <textarea rows="5" cols="20" name="subtitle"></textarea>
        <p class="help-block">sub-title</p>
    </div>

    <div class="form-group">
        <label>Nội dung</label>
        <?php $this->widget('application.extensions.eckeditor.ECKEditor', array(
            'model'=>$model,
            'attribute'=>"content",
        )); ?>
        <p class="help-block">Thông tin bài đăng</p>
    </div>

    <div class="form-group">
        <label>Ảnh đại diện</label>
        <input type="file" name="file_upload_note">
    </div>
    <div class="form-group ">
        <label>Danh mục</label>
        <select name="category_id">
            <?php
            foreach($listcategory as $key => $value){
                ?>
                <option value="<?php echo $value->id;?>"<?php if($noteitem->category_id==$value->id)echo "selected=''";?> > <?php echo $value->category_name;?></option>
            <?php
            }
            ?>
        </select>
    </div>



    <div class="form-group">
        <div class="form-group">
            <label>Status</label>
            <div class="radio">
                <label>
                    <input type="radio" name="status" id="optionsRadios" value="1" checked> hiện
            </div>
            <div class="radio">
                <label>
                    <input type="radio" name="status" id="optionsRadios2" value="0">ẩn
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <input type="submit" name="submit" value="submit">
    </div>
</form>